<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>改变HTML输出流</title>
</head>
<body>
<h1>我的第一个javascript</h1>
<p id="p1">能够对事件作出反应</p>
<button type="button" onclick="alert('欢迎！')">点我</button>
<script>
    window.alert(5+6);
    document.getElementById("p1").innerHTML="插入的HTML";
    document.write(Date());
</script>
</body>
</html>